package xyz.scootaloo.draft.design.pipe;

import java.util.Collection;

/**
 * @author flutterdash@qq.com
 * @since 2021/5/17 11:05
 */
public interface Component<T> extends LifeCycle {

    /**
     *  组件名称
     * @return
     */
    String getName();

    /**
     *  获取下游组件
     * @return
     */
    Collection<Component> getDownStreams();

    /**
     *  执行
     */
    void execute(T o);

}
